import cn.hutool.core.date.DateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 订单
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/11/4 0004 22:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {
    private static final long serialVersionUID = 8272521541019239977L;

    /**
     * 订单号
     */
    private Long id;

    /**
     * 所属用户
     */
    private String username;

    /**
     * 订单包含商品
     */
    private List<Goods> goods;

    /**
     * 创建时间
     */
    private DateTime createTime;

}
